<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {width:auto ;
            height: auto;
        }
        .a{
            width: 80px;
            height:25px;
        }
        .b{
            width: 80px;
            height: 25px;
        }
        .c{
            width: 80px;
            height: 25px;
        }
        .d{
            width: 80px;
            height: 25px;
        }
        .f{
            width: 80px;
            height: 25px;
        }
        .a:hover{  
            width: 80px;
            height: 25px;
            background-color: chartreuse;
        }
        .b:hover{
            width: 80px;
            height: 25px;
            background-color: chocolate;
        }
        .c:hover{
            width: 80px;
            height: 25px;
            background-color: cornflowerblue;
        }
        .d:hover{
            width: 80px;
            height: 25px;
            background-color: crimson;
        }
        .f:hover{
            width: 80px;
            height: 25px;
            background-color:darkgreen;
        }
    </style>
</head>
<body>
    <div class="box">
        <ul>
            
                <li class="a">python</li>
                <li class="b">javascricpt</li>
                <li class="c">html</li>
                <li class="d">java</li>
                <li class="e">php</li>
                <li class="f">mysql</li>

            
        </ul>
    </div>
</body>
</html>